/*
 * @Author: your name
 * @Date: 2020-03-26 09:41:08
 * @LastEditTime: 2020-03-26 09:41:10
 * @LastEditors: Please set LastEditors
 * @Description: 赚星星
 */

// 登录
export const getLogin = "http://117.24.15.39:27008/api/member/login"
// 获取已绑定淘宝号
export const getMember = "http://117.24.15.39:27008/api/member/platform"
// 检验账号
export const getCheckTbAccount = "http://117.24.15.39:27008/api/member/checkTbAccount"
// 获取任务
export const getAccept = "http://117.24.15.39:27008/api/member/platform_isaccept"
// 获取token
export const getAuth = "http://117.24.15.39:27008/api/order/getAuth"
// 匹配订单
export const getAcceptV2 = "http://117.24.15.39:27008/api/order/acceptV2"
// 取消订单接口
export const getNoOrder = "http://117.24.15.39:27008/api/order/noOrder"
// 确认接单
export const getSureOrderV2 = "http://117.24.15.39:27008/api/order/sureOrderV2"


export function ajaxFun(url, param, fun) {
    window.api.ajax({
        url: url,
        method: param.type,
        headers: {
            "Content-Type": "application/x-www-form-urlencoded",
            'X-Requested-With': 'XMLHttpRequest'
        },
        dataType: 'json',
        returnAll: false,
        async: false,
        data: {
            values: param.data
        }
    }, fun)
}